package com.hsq.ndmall.wx.feign.index;

import com.hsq.ndmall.common.utils.R;
import com.hsq.ndmall.wx.feign.factory.PromotionFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(value = "promotion-service",fallbackFactory = PromotionFallbackFactory.class)
public interface PromotionFeign {
    @GetMapping("/promotion/ad/list")
    R listBanner(@RequestParam Map<String, Object> params);


    @GetMapping("/promotion/grouponrules/listCopy")
    R listGroupon(@RequestParam Map<String, Object> params);

    @GetMapping("/promotion/coupon/list")
    R listCoupon(@RequestParam Map<String, Object> params);
}
